package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.BuildingVulnerability;
import com.css.fxfzypg.modules.baseData.queryParams.BuildingVulnerabilityQueryParams;

import java.util.List;

public interface BuildingVulnerabilityRepository {

    void save(BuildingVulnerability buildingVulnerability);

    List<BuildingVulnerability> getPage(BuildingVulnerabilityQueryParams queryParams);

    void update(BuildingVulnerability buildingVulnerability);

    List<BuildingVulnerability> isHaveRepeatData(String province, String city, String prefecture, String structureType);

    List<BuildingVulnerability> getVulnerability();

    List<BuildingVulnerability> getAllVulnerability(String province, String city, String prefecture, String tab,String source);

    List<BuildingVulnerability> getExportPage(BuildingVulnerabilityQueryParams queryParams);

    int delAllVulnerability(String province, String city, String prefecture, String structureType);

    void delbuildingVulnerability(List<String> idList);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);

    String getGeomByCode(String code);
}
